-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use TargetFramework conditions consistently in libraries #35956
Conversation
Tagging subscribers to this area: @ViktorHofer |
@@ -97,6 +97,44 @@ When building an individual project the `BuildTargetFramework` and `TargetOS` wi | |||
- .NET Framework latest -> `$(NetFrameworkCurrent)-Windows_NT` | |||
|
|||
# Library project guidelines | |||
|
|||
## TargetFramework conditions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we call out that $(TargetFramework)
should be avoided in PropertyGroup conditions (unless those are in a second PropertyGroup)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, done :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you know if we're going to validate that? I recall at one point we talked about it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer to not add infra for that and instead push on the project system / msbuild team to make progress on the actual issue.
Feedback is addressed. Someone pls approve :D |
...Microsoft.Extensions.DependencyInjection/src/Microsoft.Extensions.DependencyInjection.csproj
Show resolved
Hide resolved
Ping reviewers, please approve :) |
See the docs commit for the desired behavior: b0b09c6.
Additional cleanup:
Rootnamespace
,AssemblyName
)cc @ericstj